@tool
extends HBoxContainer

signal value_changed(value)

@export var value = 0:
	set(val):
		value = val
		$HScrollBar.value = val
		
@export var value_max = 0:
	set(val):
		value_max = val
		$HScrollBar.max_value = val
		
@export var text = "":
	set(val):
		text = val
		print("=======")
		$Label.text = val
# Called when the node enters the scene tree for the first time.
func _ready():
	pass # Replace with function body.


# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
	pass


func _on_h_scroll_bar_value_changed(value):
	value_changed.emit(value)
	pass # Replace with function body.
